<template>
  <Com>
    <router-link tag="a" :to="to">{{label}}</router-link>
  </Com>
</template>

<script lang="ts">
import { defineComponent } from 'vue'
import Com from '../../common/Com.vue'

export default defineComponent({
  name: 'JimuMenuItem',
  components: {Com},
  props: {
    label: String,
    to: [Object, String]
  },
  // setup(props) {
  //   const {label, to} = toRefs(props)

  //   return {
  //     label, to
  //   }
  // },
})
</script>
